package string_test;

/**
 * @author yuisama
 * @date 2022/05/07 19:53
 **/
public class StringFind {
    public static void main(String[] args) {
        String str = "hello world";
        System.out.println(str.contains("world"));
        System.out.println(str.startsWith("hello"));
        System.out.println(str.startsWith("hello1"));
        System.out.println(str.endsWith("world"));
        System.out.println(str.endsWith("world1"));
    }
}